<?php
/* @var $this GroupsController */
/* @var $model Groups */
?>
<div class="c_body">	
	<div class="tab" id="u_search_tab1_">	
		<div class="u_cat also1">
			<div class="u_cat_head_strip"></div>
			<div class="u_cat_head"><span>Добавить сообщество</span></div>
			<?php if(Yii::app()->request->getParam('group')==$_GET['group']):?>
				<form name="form" action="<?php echo Yii::app()->createUrl('groups/uploadAvatarImg',array('group'=>$_GET['group']))?>" method="POST" enctype="multipart/form-data">
					<img id="loading" src="/images/loading.gif" style="display:none;">
					<div class="add_files_fld">
						<div class="c">
							<div class="cc">
								<div class="add_files_fld_txt">перетащите сюда фото для загрузки</div>
								<a href="#" class="green_btn"><i>+</i>Добавить фото</a>
								<label for="fileToUpload"><i>+</i>Добавить аватар</label>
								<input id="fileToUpload" type="file" size="45" name="image" class="fileUpload"/>
							</div>
						</div>
					</div>
				</form>
			<?php endif; ?>
		</div>
	</div>
	<div class="clear"></div>
</div>